//mapGetters 辅助函数仅仅是将 store 中的 getters 映射到局部计算属性：
import {
    SHOW_FOOTER,
    HIDDE_FOOTER
} from './mutation_types.js'

// 监测的状态
const state = {
    showBottom: true, // 底部导航
}

const mutations = {
    /*footer*/
    [SHOW_FOOTER](state) {
        state.showBottom = true;
    },
    [HIDDE_FOOTER](state) {
        state.showBottom = false;
    },
};


const getters = {
    // ...
    showBottom(state) {
        return state.showBottom
    }
}


export default {
    state,
    mutations,
    getters
}